package com.vote.www.service;

import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vote.www.domain.Czjcopybag;
import com.vote.www.persistence.CzjcopybagMapper;
import com.vote.www.utils.UUIDUtils;

/**
 * Created by 汤伟杰 on 2017/4/28.
 */
@Service
public class CzjcopybagService {

    @Autowired
    private CzjcopybagMapper czjcopybagMapper ;
   

	/**
	 * 查询某个商品
	 * @param param
	 * @return
	 */
	public Czjcopybag getCzjcopybag(Map<String,Object> param) {
		return czjcopybagMapper.getCzjcopybag(param);
	}


	public void insertCzjcopybag(Czjcopybag list) {
		if(StringUtils.isBlank(list.getCopyczjbagId())){
			list.setCopyczjbagId(UUIDUtils.getUUID());
		}
		czjcopybagMapper.insertCzjcopybag(list);
	}

}
